﻿using System;

namespace Adventure.Library
{
    /// <summary>
    /// The exception used inside the Adventure.
    /// </summary>
    [Serializable]
    public class AdventureException : Exception
    {
        #region Lifetime

        /// <summary>
        /// Creates a new instance of AdventureException.
        /// </summary>
        public AdventureException()
            : base() { }

        /// <summary>
        /// Creates a new instance of AdventureException.
        /// </summary>
        /// <param name="message">Message of the exception.</param>
        public AdventureException(string message)
            : base(message) { }

        /// <summary>
        /// Creates a new instance of AdventureException.
        /// </summary>
        /// <param name="message">Message of the exception.</param>
        /// <param name="innerException">The inner exception.</param>
        public AdventureException(string message, Exception innerException)
            : base(message, innerException) { }
        #endregion
    }
}
